﻿using System;
using fastCSharp;

namespace diantou.web
{
    /// <summary>
    /// 黑名单
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class blacklist : currentUserView<blacklist>
    {
        /// <summary>
        /// 用户集合
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private user.userRelation[] users;
        /// <summary>
        /// 黑名单
        /// </summary>
        /// <param name="page">分页号</param>
        /// <returns>是否成功</returns>
        private bool loadView(int page)
        {
            diantou.dataAccess.user[] values = diantou.dataAccess.clientCache.User.Get(diantou.dataAccess.tcpCall.focusUser.getFocusIds(currentUserId, dataModel.focus.type.Blacklist, pageInfo.Size = fastCSharp.config.pub.Default.PageSize, pageInfo.Page = page, out pageInfo.Count));
            users = values.getArray(value => new user.userRelation { User = value, UserId = currentUserId });
            return true;
        }
    }
}